#include("../../comm/FormHead.html")
<div id="main">
    <form action="" class="layui-form margin-10" lay-filter="form">
        <input type="hidden" id="actions" name="actions" value="#(form.actions)">
        #(token??)

        <div class="layui-row">
            <div class="layui-col-md12">
                <div class="layui-form-item">
                    <label class="layui-form-label">主键ID</label>

                    <div class="layui-input-block">
                        <input type="text" readonly name="c_id"
                               placeholder="自动生成" value="#(code.c_id)" class="layui-input input-readonly">
                    </div>
                </div>
            </div>
        </div>
        <div class="layui-row">
            <div class="layui-col-md12">
                <div class="layui-form-item">
                    <label class="layui-form-label">表单名称</label>

                    <div class="layui-input-inline " style="width:150px">
                        <input type="text" name="table_name" placeholder="请输入表名"
                               value="#(code.table_name)" class="layui-input">
                    </div>
                    <label class="layui-form-mid left5">中文名</label>

                    <div class="layui-input-inline width80" style="width:150px">
                        <input type="text" name="table_title" placeholder="请输入中文名"
                               value="#(code.table_title)" class="layui-input">
                    </div>
                    <label class="layui-form-mid left5">角色</label>

                    <div class="layui-input-inline width80" style="width:190px">
                        <input type="text" name="table_role" placeholder="请输入角色"
                               value="#(code.table_role)" class="layui-input">
                    </div>
                </div>
            </div>
        </div>
        <div class="layui-row">
            <div class="layui-col-md12">
                <div class="layui-form-item">
                    <label class="layui-form-label">包 路 经</label>

                    <div class="layui-input-block">
                        <input type="text" name="package_name" placeholder="请输入包路经" lay-verify="required"
                               value="#(code.package_name)" class="layui-input">
                    </div>
                </div>
            </div>
        </div>
        <div class="layui-row">
            <div class="layui-col-md12">
                <div class="layui-form-item">
                    <label class="layui-form-label">模块名称</label>

                    <div class="layui-input-inline" style="width:120px;">
                        <input type="text" name="model_name" placeholder="模块名称" lay-verify="required"
                               value="#(code.model_name)" class="layui-input">
                    </div>
                    <label class="layui-form-mid left5">简称</label>

                    <div class="layui-input-inline" style="width:100px;">
                        <input type="text" name="model_sname" placeholder="简称"
                               value="#(code.model_sname)" class="layui-input">
                    </div>
                    <label class="layui-form-mid left5">主键</label>

                    <div class="layui-input-inline" style="width:100px;">
                        <input type="text" name="model_key" placeholder="主键" lay-verify="required"
                               value="#(code.model_key)" class="layui-input">
                    </div>
                    <label class="layui-form-mid left5">路经</label>

                    <div class="layui-input-inline" style="width:140px;">
                        <input type="text" name="model_path" placeholder="路经" lay-verify="required"
                               value="#(code.model_path)" class="layui-input">
                    </div>

                </div>
            </div>
        </div>
        <div class="layui-row">
            <div class="layui-col-md12">
                <div class="layui-form-item">
                    <label class="layui-form-label"></label>

                    <div class="layui-input-inline" style="width:70px;">
                        <input type="checkbox" name="list_tree" value="1" lay-skin="primary"
                               title="列表树" #(code.list_tree==1?'checked':'')>
                    </div>
                    <div class="layui-input-inline" style="width:90px;">
                        <input type="checkbox" name="list_searchmore" value="1" lay-skin="primary"
                               title="高级搜索" #(code.list_searchmore==1?'checked':'')>
                    </div>
                    <div class="layui-input-inline" style="width:70px;">
                        <input type="checkbox" name="list_tool" value="1" lay-skin="primary"
                               title="工具栏" #(code.list_tool==1?'checked':'')>
                    </div>
                    <div class="layui-input-inline" style="width:90px;">
                        <input type="checkbox" name="form_v_js" value="1" lay-skin="primary"
                               title="前端验证" #(code.form_v_js==1?'checked':'')>
                    </div>
                    <div class="layui-input-inline" style="width:90px;">
                        <input type="checkbox" name="form_v_api" value="1" lay-skin="primary"
                               title="后端验证" #(code.form_v_api==1?'checked':'')>
                    </div>
                    <div class="layui-input-inline" style="width:90px;">
                        <input type="checkbox" name="form_v_bdel" value="1" lay-skin="primary"
                               title="批量删除" #(code.form_v_bdel==1?'checked':'')>
                    </div>
                </div>
            </div>
        </div>
        <div class="layui-row">
            <div class="layui-col-md12">
                <div class="layui-form-item">
                    <label class="layui-form-label">列表树Key</label>

                    <div class="layui-input-inline" style="width:100px;">
                        <input type="text" name="tree_key"
                               value="#(code.tree_key)" class="layui-input">
                    </div>
                </div>
            </div>
        </div>
        <div class="layui-row">
            <div class="layui-col-md12">
                <div class="layui-form-item">
                    <label class="layui-form-label">备注说明</label>

                    <div class="layui-input-block">
                        <textarea name="c_desc" placeholder="请输入备注说明" class="layui-textarea" style="min-height:100px">#(code.c_desc)</textarea>
                    </div>
                </div>
            </div>
        </div>
        <div class="layui-form-item">
            <div class="layui-input-block">
                <button type="submit" class="layui-btn" lay-submit="" lay-filter="Submit1">立即提交</button>
                <button type="reset" class="layui-btn layui-btn-primary">重置</button>
            </div>
        </div>
    </form>
</div>
<SCRIPT LANGUAGE="JavaScript">
    <!--
    var $ = layui.$;
    layui.use(['form', 'myTool'], function () {
        var form = layui.form;
        form.on('submit(Submit1)', function (data) {
            layui.myTool.post("ModifySysCodeApi", {postdata: JSON.stringify(data.field)}, function () {
                parent.layer.closeAll();
            });
            return false;
        });
    });
    //-->
</SCRIPT>
</body>
</html>